#include<iostream>
#include<string>
#include<map>
using namespace std;
const int N = 110;
string s1, s2, s;
int n;
int main()
{
	cin >> n;
	if (n == 1) {
		cin >> s1;
		cout << s1 << endl;
		return 0;
	}
	int ans1 = 0, ans2 = 0;
	for (int i = 0; i < n; i++) {
		if (!i) {
			cin >> s1;
			ans1++;
			continue;
		}
		cin >> s;
		if (s == s1) {
			ans1++;
		}
		else {
			s2 = s;
			ans2++;
		}
	}
	if (ans1 > ans2) {
		cout << s1 << endl;
	}
	else {
		cout << s2 << endl;
	}
	return 0;
}